package com.achen.service.impl;

import com.achen.dao.UserDao;
import com.achen.entity.User;
import com.achen.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author achen
 * @create 2020-04-27 22:31
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll() {
//        System.out.println("进入目标方法");
        return userDao.findAll();
    }

    @Override
    public void edit(String name){
        System.out.println("姓名"+name);
    }
}
